package com.neo.office.server.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.neo.office.server.config.data.Result;
import com.neo.office.server.config.page.PageResult;
import com.neo.office.server.domain.entity.Employee;

import java.time.LocalDate;
import java.util.List;

public interface EmployeeService extends IService<Employee> {

    /**
     * 获取所有员工(分页)
     * @param currentPage
     * @param size
     * @param employee
     * @param beginDateScope
     * @return
     */
    PageResult getEmployeeByPage(Integer currentPage, Integer size, Employee employee, LocalDate[] beginDateScope);

    /**
     * 获取工号
     * @return
     */
    Result MaxWorkID();

    /**
     * 添加员工
     * @return
     */
    Result addEmployee(Employee employee);

    /**
     * 查询员工
     * @param id
     * @return
     */
    List<Employee> getEmployee(Integer id);

    /**
     * 获取所有员工账套
     * @param currentPage
     * @param size
     * @return
     */
    PageResult getEmployeeWithSalary(Integer currentPage, Integer size);
}
